import request from '@/utils/request'

// 查询农户信息登记列表
export function listWiFarmerB(query) {
  return request({
    url: '/datam/WiFarmerB/list',
    method: 'get',
    params: query
  })
}

// 查询农户信息登记详细
export function getWiFarmerB(farmCd) {
  return request({
    url: '/datam/WiFarmerB/' + farmCd,
    method: 'get'
  })
}

// 新增农户信息登记
export function addWiFarmerB(data) {
  return request({
    url: '/datam/WiFarmerB',
    method: 'post',
    data: data
  })
}

// 修改农户信息登记
export function updateWiFarmerB(data) {
  return request({
    url: '/datam/WiFarmerB',
    method: 'put',
    data: data
  })
}

// 删除农户信息登记
export function delWiFarmerB(farmCd) {
  return request({
    url: '/datam/WiFarmerB/' + farmCd,
    method: 'delete'
  })
}
